package chatGUI;

import model.User;

/**
 * @author Michael & Pierre
 */
 /**
 * Interface gathering all messages coming from the user
 */
public interface FromUser {

	/**
	 * Interface : message coming form user clicking on connection button
	 */
	void connect();
	
	/**
	 * Interface : message coming form user clicking on disconnection button
	 */
	void disconnect();
	
	/**
	 * Interface : message coming from user entering an username in appropriated text area
	 */
	void username();
	
	/**
	 * Interface : message coming from user clicking on red-cross button to close the window
	 */
	void closeWindow();
	
	/**
	 * Interface : message from user selecting users to chat with
	 * @param selected username
	 */
	void selectedContact(User selected);
	
	/**
	 * Interface : message from user clicking on send button to send message the message he wrote in the proper area
	 * @param msg
	 */
	void sendButton(String msg);
	
}
